﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlaceTypeGrid.aspx.cs"
    Inherits="FantastPlatform.Community.UI.Setting.PlaceTypeGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
      //  var Disabled = true;       
        var ptg = new FantastPlatform.UI.PlaceTypeGrid({
            renderTo: 'ptg_div',
            url: '../Service/PlaceTypeService.aspx?Action=Search',
            border: false,
            width: tabs.getInnerWidth() - 5,
            height: tabs.getInnerHeight() - 5,
            tbar: [{
                text: '添加',
                iconCls: 'add',
                disabled: Disabled,
                id: 'btnPlaceTypeadd',
                tooltip: {
                    text: '添加场所类型',
                    title: '添加场所类型',
                    autoHide: true
                },
                handler: function () { ptg.onAddPlaceTypeGridClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                disabled: Disabled,
                id: 'btnPlaceTypeedit',
                tooltip: {
                    text: '选择要编辑的记录',
                    title: '编辑场所类型',
                    autoHide: true
                },
                handler: function () { ptg.onEditPlaceTypeGridClick(); }
            }, '-', {
                text: '删除',
                iconCls: 'delete',
                disabled: Disabled,
                id: 'btnPlaceTypedelete',
                tooltip: {
                    text: '删除选中的记录',
                    title: '删除场所类型',
                    autoHide: true
                },
                handler: function () { ptg.onDeletePlaceTypeGridClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '列表刷新',
                    autoHide: true
                },
                handler: function () { ptg.onUpdataPlaceTypeGridClick(); }
            }]
        });
        if (AdminI == "True") {
            ptg.addListener('rowdblclick', function () { ptg.onEditPlaceTypeGridClick(); });
        }
        ptg.onUpdataPlaceTypeGridClick();  
    </script>
</head>
<body>
    <div id="ptg_div">
    </div>
</body>
</html>
